/*
 * @Author: Lin Hongwei
 * @Date: 2022-09-18 20:51:34
 * @LastEditTime: 2022-09-18 21:53:15
 * @LastEditors: Lin Hongwei
 * @email: 1365755396@qq.com
 * @CSDN: https://blog.csdn.net/weixin_45429409
 * @Description: 用户选择框组件
 */

import { ComponentProps } from "react";
import { IdSelect } from "./id-select";
import { useQueryUsers } from "../api/users";

export const UserSelect = (props: ComponentProps<typeof IdSelect>) => {
  const { data: users } = useQueryUsers();
  return <IdSelect options={users || []} {...props} />;
};
